import Base from "./base";
const api = new Base();
// 新增购物车
export const addCart = (data: any) => api.post("/goodsCart/add", data);
// 修改购物车
export const updateCart = (data: any) => api.patch(`/goodsCart/${data.id}`, data);
// 删除购物车
export const delCart = (id: string) => api.delete(`/goodsCart/${id}`);
// 查询购物车列表
export const getCartList = (data: any) => api.get("/goodsCart/page", data);
// 查询购物车
export const getCart = (id: string) => api.get(`/goodsCart/${id}`);
